package dto

import "encoding/json"

type UserDeviceInfo struct {
	ID            *string `json:"id"`
	Brand         *string `json:"brand"`
	Model         *string `json:"model"`
	ProductName   *string `json:"productName"`
	SystemName    *string `json:"systemName"`
	SystemVersion *string `json:"systemVersion"`
}

func (u *UserDeviceInfo) String() string {
	jsonBytes, err := json.Marshal(u)

	if err != nil {
		return ""
	}

	return string(jsonBytes)
}

type UserSystemInfo struct {
	OperatingSystem        *string `json:"operatingSystem"`
	OperatingSystemVersion *string `json:"operatingSystemVersion"`
	PlatformVersion        *string `json:"platformVersion"`
	AppVersion             *string `json:"appVersion"`
}

func (u *UserSystemInfo) String() string {
	jsonBytes, err := json.Marshal(u)

	if err != nil {
		return ""
	}

	return string(jsonBytes)
}
